import React,{Component} from "react";

interface IProps {
    name :string
    /**
     * 属性可选
     * 
     */
    age ?:number
}

/**
 * 自定义组件
 */
export default class Lee extends Component<IProps, any>{
    render(){
        return (
            <div>
               <h1>component</h1>
                <h2>{this.props.name}</h2>
                <h3>{this.props.age}</h3>
            </div>
        )
    }
}
